<?php

/**
 * Subclass for representing a row from the 'solicitud_taller' table.
 *
 * 
 *
 * @package lib.model
 */ 
class SolicitudTaller extends BaseSolicitudTaller
{
	public $nombretaller = '';
	public $nombrelugar='';
	public $ini='';
	public $fin='';

	function _toString()
	{
		return $this->getNombTaller();
	}


	function getNombretaller()
	{

		if ($this->nombretaller == '')
		{
		   $objTaller=$this->getTaller();
		   $this->nombretaller = $objTaller->getNombTaller();
		}
		return $this->nombretaller;
	}


	function getNombrelugar()
	{

		if ($this->nombrelugar == '')
		{
			$c = new Criteria();
			$c->add(TallerSesionPeer::TALLER_ID,$this->getTallerId());
			$objTallerSesion = TallerSesionPeer::doSelectOne($c);
			$this->nombrelugar = $objTallerSesion->getLugar();
		}
		return $this->nombrelugar;
	}


	function getIni()
	{

		if ($this->ini == '')
		{
			$c = new Criteria();
			$c->add(TallerSesionPeer::TALLER_ID,$this->getTallerId());
			$objTallerSesion = TallerSesionPeer::doSelectOne($c);
			$this->ini = $objTallerSesion->getFechaInicio();
		}
		return $this->ini;
	}


	function getFin()
	{

		if ($this->fin == '')
		{
			$c = new Criteria();
			$c->add(TallerSesionPeer::TALLER_ID,$this->getTallerId());
			$objTallerSesion = TallerSesionPeer::doSelectOne($c);
			$this->fin = $objTallerSesion->getFechaFinal();
		}
		return $this->fin;
	}
}
